package com.jxb.service;
import javax.annotation.PreDestroy;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.Aware;
import org.springframework.beans.factory.BeanClassLoaderAware;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanFactoryAware;
import org.springframework.beans.factory.BeanNameAware;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.DependsOn;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.jxb.condition.ConditionTest;

import java.util.Map;

/**
 * @author 周瑜
 */
// @Component
// @Scope("prototype")
// @Conditional(value = ConditionTest.class)
// @DependsOn(value = {"orderService"})
//public class UserService implements BeanNameAware, BeanFactoryAware, BeanClassLoaderAware {
public class UserService {

    // @Autowired
    // private OrderService orderService;

    // @Autowired
    // private OrderInterface orderInterface;

//    @Autowired
//    @Value("${spring.index.ignore}")
//    private String orderService;

//    @Value("#{orderService}")
//    private OrderService orderService;

//    private String baneName;

//    private BeanFactory beanFactory;
//
//    private ClassLoader classLoader;



    public void test() {
        System.out.println("test");
        // System.out.println(orderService);
	}

//    @Override
//    public void setBeanName(String name) {
//        this.baneName = name;
//    }
//
//    @Override
//    public void setBeanFactory(BeanFactory beanFactory) throws BeansException {
//        this.beanFactory = beanFactory;
//    }
//
//    @Override
//    public void setBeanClassLoader(ClassLoader classLoader) {
//        this.classLoader = classLoader;
//    }
//
//    @PreDestroy
//    public void destory() {
//        System.out.println("执行销毁方法");
//    }
}
